package com.ysq.nfd.config;

import java.io.File;

/**
 * 配置文件路径
 * @author admin
 *
 */
public class ConfigFilePath {
	/** 项目主路径 **/
	public static final String projectRootDir;
	/** 配置文件路径 **/
	public static final String configBaseDir;
	
	/** base 配置文件 **/
	public static String baseConfig = "config.xml";
	/** log4j **/
	public static String baseLog4j = "log4j.xml";
	
	static{
		projectRootDir = getRootPath();
		configBaseDir = projectRootDir + "/config/";
		
	}
	
	/**
	 * 
	 * @return
	 */
	public static String getRootPath(){
		String userDir = System.getProperty("user.dir");
		
		File userFile = new File(userDir);
		
		//String rootFile = userFile.getParent();
		String rootPath = userFile.getAbsolutePath();
		
		return rootPath;
	}
}
